#include "Ticket.h"
#include <iostream>

Ticket::Ticket(void)
{
}


Ticket::~Ticket(void)
{
}

bool Ticket::QCompare(Ticket & otherTicket)
{
	return ArriveTime > otherTicket.ArriveTime;
}

void Ticket::generate(int a_arrivalTime,int a_currentFloor,int a_destination,int a_ID)
	{
		ID = a_ID;
		ArriveTime= a_arrivalTime;
		StartFloor = a_currentFloor;
		DestinationFloor = a_destination;
		ExitTime = 0;
		ElevID = -1;// Walker: propose changing to -1
		ServiceTime = -1;// Walker: propose changing to -1
	}